﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace elr_tracking_bal.ART
{
    public class ArticuloCollection : ObservableCollection<Articulo>
    {
        public ArticuloCollection(List<Articulo> art)
        {
            foreach (Articulo a in art)
            {
                this.Add(a);
            }
        }

        public int CalculaTotal()
        {
            int count=0;
            foreach (Articulo a in this)
            {
                count++;
            }

            return count;
        }
    }
}
